package com.wuxu.ads_no.ui

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.Lifecycle

/**
 *@author wuxu 21057340
 *@date 2024/1/30 4:52 PM
 *@description
 */
//
//@Composable
//Ads_NoTheme(){
//    val owner = LocalLifecycleOwner.current
//
//    val lifeEvent : MutableState<Lifecycle.Event> = remember { mutableStateOf(Lifecycle.Event.ON_RESUME) }
//
//    DisposableEffect(owner ){
//        val observer = LifecycleEventObserver{_,event->
//            lifeEvent.value =  event
//        }
//
//        owner.lifecycle.addObserver(observer)
//        onDispose { owner.lifecycle.removeObserver(observer) }
//    }
//
//    Surface(
//        modifier = Modifier.fillMaxSize(),
//        color = MaterialTheme.colorScheme.background
//    ) {
//
//
//        if (lifeEvent.value == Lifecycle.Event.ON_RESUME){
//            CheckAccessibilityIsOpen()
//        }
//    }
//}